package com.bysj.service;

import com.bysj.entity.Goods;
import com.bysj.entity.News;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface NewsService {
    //查询所有新闻
    List<News> getAll(Map map);
    //通过id查询新闻
    List<News> selectById(Integer id);
    //根据id删除资讯
    void deleteNewsById(Integer id);
    //添加资讯
    void addNews(News news);

    //分页查询所有商品
    PageInfo<News> getAllNewsByPage(Map map , int pageNum, int pageSize);
}
